<?php

namespace app\admin\model;

use think\Model;

class Admin extends Model
{
    //验证用户名或者密码是否正确
    public function checkUser($admin_name,$admin_password){
         return  self::where(['admin_name'=>$admin_name,'admin_password'=>$admin_password])->find();
    }
}
